]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Catch async errors
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Feb 2026 13:48:36 +0000 (14:48 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 17:43:04 +0000 (18:43 +0100)
It is good practice to avoid "unhandled promise rejection" errors,
even when a function is not expected to reject.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4070>
(cherry picked from commit c89d2061b38aa69f3aaafeb594d598c07b14721b)

js/ui/layout.js

index e47c82f936f78b56812f2313faf776935b919916..820f49fc8411ad9c36e9946c26347e37786fa4f0 100644 (file)
@@ -603,7 +603,7 @@ export const LayoutManager = GObject.registerClass({
         this._updateMonitors();
         this._updateBoxes();
         this._updateHotCorners();
-        this._updateBackgrounds();
+        this._updateBackgrounds().catch(logError);
         this._updateFullscreen();
         this._updateVisibility();
         this._queueUpdateRegions();